package com.leador.location;

import android.location.GpsStatus;
import android.location.GpsStatus.Listener;

/**
 * Created by lhy on 2016/9/15.
 */
public class GpsListener implements Listener {
    private LocationListener locationListener;
    public GpsListener(LocationListener locationListener){
        this.locationListener = locationListener;
    }
    @Override
    public void onGpsStatusChanged(int status) {
        GpsStatus gpsStatus = locationListener.getLocationManager().getGpsStatus(null);
        locationListener.setStateLilty(status,gpsStatus);
    }
}
